package com.weijin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author WeiJin
 * @Version 1.0
 * @Date 2025/3/19 9:22
 */
@Data
@NoArgsConstructor
@TableName("t_chat_history")
@ApiModel("聊天记录实体类")
public class ChatHistory {
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("聊天记录id")
    private String id;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;
    @ApiModelProperty("发送人")
    private String sender;

}
